home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / Utilities / Interfaces / StorUtil.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  3.0 KB  |  129 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        StorUtil.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Owned by:    Craig Carper
  7.  
  8.     Copyright:    © 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>     3/15/96    CC        1316917: Changed
  13.                                     RemoveDataInterchangeProperties parameter
  14.                                     name to "keepProxyProperties".
  15.  
  16.     To Do:
  17. */
  18.  
  19. /*
  20.     File:        StorUtil.h
  21.  
  22.     Contains:    Utilities for Storage.
  23.  
  24.     Owned by:    Vincent Lo
  25.  
  26.     Copyright:    © 1994 - 1995 by Apple Computer, Inc., all rights reserved.
  27.  
  28.     
  29.     In Progress:
  30.         
  31. */
  32.  
  33.  
  34.  
  35. #ifndef _STORUTIL_
  36. #define _STORUTIL_
  37.  
  38. #ifndef SOM_ODDraft_xh
  39. #include <Draft.xh>
  40. #endif
  41.  
  42. #ifndef _ODTYPES_
  43. #include <ODTypes.h>
  44. #endif
  45.  
  46. #ifndef _ODMEMORY_
  47. #include <ODMemory.h>
  48. #endif
  49.  
  50. #ifndef _PLFMFILE_
  51. #include <PlfmFile.h>
  52. #endif
  53.  
  54. #ifndef SOM_ODPart_xh
  55. #include <Part.xh>
  56. #endif
  57.  
  58. class ODContainer;
  59. class ODSession;
  60. class ODStorageUnitView;
  61. class ODStorageUnit;
  62.  
  63. #ifdef _OD_IMPL_SHARE_UTILS_
  64. #pragma import on
  65. #endif
  66.  
  67.  
  68. extern "C" {
  69.     void        ODSUAddPropValue(Environment* ev,
  70.                                     ODStorageUnit* su,
  71.                                     ODPropertyName prop,
  72.                                     ODValueType val);
  73.     void        ODSUForceFocus(Environment* ev, 
  74.                                 ODStorageUnit* su,
  75.                                 ODPropertyName prop,
  76.                                 ODValueType val);
  77.     ODBoolean    ODSUExistsThenFocus(Environment* ev, 
  78.                                 ODStorageUnit* su,
  79.                                 ODPropertyName prop,
  80.                                 ODValueType val);
  81.     void        ODSURemoveProperty(Environment* ev,
  82.                                 ODStorageUnit* su,
  83.                                 ODPropertyName prop);
  84.     
  85.     PlatformFile*    GetPlatformFileFromContainer(Environment* ev, ODContainer* container);
  86.     ODFileSpec        GetODFileSpecFromContainer(Environment* ev, ODContainer* container);
  87.  
  88.     ODContainer*    CreateFileContainer(Environment* ev, ODSession* session, FSSpec* fsSpec);
  89.     ODContainer*    GetFileContainer(Environment* ev, ODSession* session, FSSpec* fsSpec);
  90.  
  91.     ODContainer*    CreateMemoryContainer(Environment* ev,
  92.                         ODSession* session,
  93.                         ODHandle handle,
  94.                         ODContainerType containerType);
  95.     ODContainer*    GetMemoryContainer(Environment* ev, 
  96.                         ODSession* session,
  97.                         ODHandle handle,
  98.                         ODContainerType containerType);
  99.  
  100.     ODULong            StorageUnitGetValue(ODStorageUnit* su, Environment* ev,
  101.                                         ODULong size, void *buffer);
  102.     ODULong            StorageUnitViewGetValue(ODStorageUnitView* suv, Environment* ev,
  103.                                         ODULong size, void *buffer);
  104.  
  105.     void            StorageUnitSetValue(ODStorageUnit* su, Environment* ev,
  106.                                         ODULong size, const void *buffer);
  107.     void            StorageUnitViewSetValue(ODStorageUnitView* suv, Environment* ev,
  108.                                         ODULong size, const void *buffer);
  109.     void            StorageUnitSetPromiseValue(ODStorageUnit* su, Environment* ev,
  110.                                         ODValueType value, ODULong offset,
  111.                                         ODULong size, const void *buffer, ODPart *sourcePart);
  112.  
  113.     ODBoolean        StorageUnitGetStylFromStyledText(ODStorageUnit* su,
  114.                         Environment* ev,
  115.                         ODULong* size,
  116.                         ODPtr* styl);
  117.                         
  118.     ODCloneKind GetOriginalCloneKind(Environment* ev, ODDraft* draft);
  119.  
  120.     void RemoveDataInterchangeProperties (Environment* ev,
  121.                         ODStorageUnit* su,
  122.                         ODBoolean keepProxyProperties);
  123. }
  124.  
  125. #ifdef _OD_IMPL_SHARE_UTILS_
  126. #pragma import off
  127. #endif
  128.     
  129. #endif // _STORUTIL_